//
//  SearchTableViewCell.m
//  Gegeda_music_MY
//
//  Created by lanou3g on 15/11/10.
//  Copyright © 2015年 周莹. All rights reserved.
//

#import "SearchTableViewCell.h"
#import "UIImageView+WebCache.h"
@implementation SearchTableViewCell

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

-(NSMutableArray *)array{
    if (!_nameArray) {
        _nameArray = [NSMutableArray  array ];
    }
    return _nameArray;

}
-(void)setCell:(SerchModel *)model{
    self.image.layer.cornerRadius = 20;
    self.image.layer.masksToBounds = YES;
    
    [self.image  sd_setImageWithURL:[NSURL URLWithString:model.picUrl ]placeholderImage:[UIImage  imageNamed:@"111.jpg"]];
    self.name .text= model.name;
    [self.nameArray  addObject:self.name.text];
    self.singer .text = model.singer;

}
@end
